<template>
  <div>my-button,my-button-group,my-icon,my-row,my-col</div>
  <my-button icon="my-icon-loading" disabled>按钮1</my-button>
  <my-button loading icon="my-icon-menu">按钮2</my-button>
  <my-button round :loading="buttonLoading">按钮3</my-button>
  <my-button type="warning">按钮4</my-button>
  <my-button icon="my-icon-menu" type="success">按钮5</my-button>
  <my-button icon="my-icon-pdf" type="danger" @click="buttonClick"></my-button>

  <my-button-group>
    <my-button type="primary" icon="my-icon-arrow-left-bold">上一页</my-button>
    <my-button type="primary">下一页<i class="my-icon-arrow-right-bold"></i></my-button>
  </my-button-group>

  <my-ceshi></my-ceshi>
  <my-icon name="loading"></my-icon>

  <hr>

  <my-row>
    <my-col :span="6"><div style="background:red">111</div></my-col>
    <my-col :span="6" :offset="6"><div style="background:green">222</div></my-col>
    <my-col :span="6"><div style="background:yellow">333</div></my-col>
  </my-row>
  <my-row :gutter="20">
    <my-col :span="8"><div style="background:red">111</div></my-col>
    <my-col :span="8"><div style="background:green">222</div></my-col>
    <my-col :span="8"><div style="background:yellow">333</div></my-col>
  </my-row>
  <my-row justify="space-between">
    <my-col :span="2"><div style="background:red">111</div></my-col>
    <my-col :span="2"><div style="background:green">222</div></my-col>
    <my-col :span="2"><div style="background:yellow">333</div></my-col>
  </my-row>

  <my-row :gutter="10">
        <my-col :xs="8" :sm="6" :md="4" :lg="3" :xl="1">
          <div class="grid-content bg-purple"></div>
        </my-col>
        <my-col :xs="4" :sm="6" :md="8" :lg="9" :xl="11">
          <div class="grid-content bg-purple-light"></div>
        </my-col>
        <my-col :xs="4" :sm="6" :md="8" :lg="9" :xl="11">
          <div class="grid-content bg-purple"></div>
        </my-col>
        <my-col :xs="8" :sm="6" :md="4" :lg="3" :xl="1">
          <div class="grid-content bg-purple-light"></div>
        </my-col>
      </my-row>


  <!-- <div class="my-xxx">
    <button class="my-button--primary is-readonly is-disabled"></button>
    <button class="my-button--success"></button>
    <div class="my-header"></div>
    <div class="my-body"></div>
    <div class="my-footer"></div>
  </div> -->
</template>
<script>
import { defineComponent,ref } from 'vue'
//组合式api
import { useButton } from './hook/useButton';

export default defineComponent({
  setup() {
    return {
      ...useButton()
    }
  },
})
</script>
<style>
  .my-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
</style>